<!DOCTYPE html>
<html>
<head>
  <title>page</title>
  <meta charset="UTF-8">
  <link rel="stylesheet" type="text/css" href="Accordion Menu 2.css">
  <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css">
  <style>
    
  </style>
</head>
<body>
  <div class="container">
    <h3>Accordion Menu 2</h3>
    <div class="accordion">
      <!-- Menu 1 -->
      <div class="accordion-item">
        <a>what is Angular JS? How to use? </a>
        <div class="info">
          <p>
            Lorem ipsun dolor sit amet, consectetur adipiscing 
            elit, sed do eiusmod tempor incididunt ut labore et 
            dolore magna aliqua. Elementum sagittis vitae et leo 
            duis ut. ut tortor pretiun viverra suspendisse potent
          </p >
        </div>
      </div>

      <!-- Menu 2 -->
      <div class="accordion-item">
        <a>what is React ]S? How to use?</a>
          <div class="info">
            <p>
              Lorem ipsun dolor sit amet, consectetur adipiscing 
              elit, sed do eiusmod tempor incididunt ut labore et 
              dolore magna aliqua. Elementum sagittis vitae et leo 
              duis ut. ut tortor pretiun viverra suspendisse potenti.
            </p >
          </div>
        </div>
        
        <!-- Menu 3 -->
        <div class="accordion-item">
          <a>what is Node.js? How to use?</a>
          <div class="info">
            <p>
            Lorem ipsun dolor sit amet, consectetur adipiscing 
            elit, sed do eiusmod tempor incididunt ut labore et 
            dolore magna aliqua. Elementum sagittis vitae et leo 
            duis ut. ut tortor pretiun viverra suspendisse potenti.
            </p >
          </div>
        </div>
        
        <!-- Menu 4 -->
        <div class="accordion-item">
          <a>what is Vue.js? How to use?</a>
          <div class="info">
            <p>
            Lorem ipsun dolor sit amet, consectetur adipiscing
            elit, sed do eiusmod tempor incididunt ut labore et 
            dolore magna aliqua. Elementum sagittis vitae et leo 
            duis ut. ut tortor pretiun viverra suspendisse potenti.
            </p >
          </div>
        </div>
        
        <!-- Menu 5 -->
        <div class="accordion-item">
          <a>what is jQuery? How to use?</a>
          <div class="info">
            <p>
            Loren ipsun dolor sit amet, consectetur adipiscing
            elit, sed do elusmod tempor incididunt ut labore et
            dolore magna aliqua. Elementum sagittis vitae et leO 
            duis ut. ut tortor pretiun viverra suspendisse poternti.
            </p >
          </div>
        </div>
    </div>
  </div>
  <script>
    const itens = document.querySelectorAll(".accordion a");
    itens,forEach((item) => item.addEventListener('click', toggleAccordion))
    function toggeArcornion(){
      this.classList.toggle('active');
      this.nextElementsibling.classList.toggle('active');
      }
  </script>
</body>
</html>